# encoding: utf-8


def isPrime(num):
	t = (int,)
	try:
		if type(num) not in t or num <= 1:
			return ('input num is not int')
	except:
		print('input num exception!')
	
	for i in range(2, num):
		if num % i == 0:
			return False
			break
	return True
			
print(isPrime(23))
print(isPrime(49))
print(isPrime(1 + 2j))
print(isPrime(37))
print(isPrime('adf'))
print(isPrime('23'))
	
		